﻿using QntPlatform.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using QntPlatform.Strategy.S2;
namespace QntPlatform.Db
{
   public class StrategyStore
    {
        public StrategyInfo[] GetList() {
            var stbArr = new StrategyBase2[] { new BiaoZhun(),new PuTong(),new TuPo(),new TuPo_2() };
            var list = new List<StrategyInfo>();
            foreach (var item in stbArr)
            {
                var si = new StrategyInfo();
                si.Name = item.Remark.Name;
                si.Id = si.Name;
                si.SetArgInfosStr(item.GetArgInfosByAttr());
                si.Remark = item.Remark.Remark;
                si.ContentType = item.GetType().FullName;
                list.Add(si);
            }
            return list.ToArray();
        }
    }
}
